/*
 * get_file_len - get the length of the file named seg_file_name 
 * @param seg_file_name the name of thelast modified segment file
 * @return Return the length of the file
 */
uint32_t
get_file_len(char *seg_file_name)
{
   int fd;
   int len;
	
   fd = open(seg_file_name, O_RDONLY);
   if(fd == -1)
   {
      perror("open error!");
	  exit(1);
   }
   len = lseek(fd, 0, SEEK_END);
				
   return len;
}

